project(iMarking C CXX Fortran)

#FIND_PACKAGE(Qt4 REQUIRED)
find_package(Qt4 COMPONENTS QtCore QtGui QtXml REQUIRED)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})

#find_package(Boost COMPONENTS program_options REQUIRED)
#find_package(LAPACK REQUIRED)
#link_directories(/opt/armadillo/lib64)
#include_directories(/opt/armadillo/include)

# compiler flags
add_definitions( -Wall -O2 )

SET(imark_SOURCES imark.cpp mainwindow.cpp document.cpp)
SET(imark_HEADERS mainwindow.h)
QT4_WRAP_CPP(imark_HEADERS_MOC ${imark_HEADERS})

add_executable(imark
  ${imark_SOURCES}
  ${imark_HEADERS_MOC}
)
target_link_libraries(imark
  #armadillo
  #lapack
  #blas
  #${Boost_MPI_LIBRARY}
  #${Boost_PROGRAM_OPTIONS_LIBRARY}
  ${QT_LIBRARIES}
)
